#ifndef TEXT_TEXTNORMALIZER_H
#define TEXT_TEXTNORMALIZER_H

#include <QObject>


namespace Text {

class TextNormalizer : public QObject
{
    Q_OBJECT

public:
    explicit TextNormalizer(QObject *parent = 0);

public:
    QString normalize(const QString &text) const;

private:
    QString toLower(const QString &text) const;
    QString toUpper(const QString &character) const;
    QChar decomposition(const QChar &character) const;
    void decomposition(QString &text) const;
};

} // namespace Text

#endif // TEXT_TEXTNORMALIZER_H
